#ifndef ABSTRACTHTTPLOGIC_H
#define ABSTRACTHTTPLOGIC_H

#include <QObject>

#include <As/Http/HttpRequest.h>
#include <As/Http/HttpResponse.h>

namespace As {

class AbstractHttpLogic : public QObject
{
    Q_OBJECT;
public:
    explicit AbstractHttpLogic(QObject *parent = 0);

signals:
    void response(As::HttpResponse resp);
    void listen();
    void stopListen();

public slots:
    virtual void request(As::HttpRequest req) = 0;

};

}

#endif // ABSTRACTHTTPLOGIC_H
